<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>邛崃监狱智慧车间系统平台</title>
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
<link rel="stylesheet" href="layuiadmin/layui/css/layui.css" media="all">
<link rel="stylesheet" href="layuiadmin/style/admin.css" media="all">
</head>
<body class="layui-layout-body">
  <div id="LAY_app">
    <div class="layui-layout layui-layout-admin">
      <div class="layui-header">
        <!-- 头部区域 -->
        <ul class="layui-nav layui-layout-left">
          <li class="layui-nav-item layadmin-flexible" lay-unselect>
            <a href="javascript:;" layadmin-event="flexible" title="侧边伸缩">
              <i class="layui-icon layui-icon-shrink-right" id="LAY_app_flexible"></i>
            </a>
          </li>
          <li class="layui-nav-item" lay-unselect>
            <a href="javascript:;" layadmin-event="refresh" title="刷新">
              <i class="layui-icon layui-icon-refresh-3"></i>
            </a>
          </li>
        </ul>
        <ul class="layui-nav layui-layout-right" lay-filter="layadmin-layout-right">
          
<!--           <li class="layui-nav-item" lay-unselect> -->
<!--             <a lay-href="app/message/index.html" layadmin-event="message" lay-text="消息中心"> -->
<!--               <i class="layui-icon layui-icon-notice"></i>   -->
<!--               如果有新消息，则显示小圆点 -->
<!--               <span class="layui-badge-dot"></span> -->
<!--             </a> -->
<!--           </li> -->
<!--           <li class="layui-nav-item layui-hide-xs" lay-unselect> -->
<!--             <a href="javascript:;" layadmin-event="theme"> -->
<!--               <i class="layui-icon layui-icon-theme"></i> -->
<!--             </a> -->
<!--           </li> -->
<!--           <li class="layui-nav-item layui-hide-xs" lay-unselect> -->
<!--             <a href="javascript:;" layadmin-event="note"> -->
<!--               <i class="layui-icon layui-icon-note"></i> -->
<!--             </a> -->
<!--           </li> -->
          <!-- 全屏显示按钮 -->
          <li class="layui-nav-item layui-hide-xs" lay-unselect>
            <a href="javascript:;" layadmin-event="fullscreen">
              <i class="layui-icon layui-icon-screen-full"></i>
            </a>
          </li>
          
          <!-- 操作员信息 -->
          <li class="layui-nav-item" lay-unselect>
            <a href="javascript:;">
              <cite>${Operator.loginname}</cite>
            </a>
            <dl class="layui-nav-child">
              <dd data-name="updatemyinfo" style="text-align: center;"><a lay-href="operator/updateMyinfoInit">修改资料</a></dd>
              <dd data-name="updatemypassword" style="text-align: center;"><a lay-href="operator/updateMypasswordInit">修改密码</a></dd>
              <hr>
              <dd style="text-align: center;"><a href="javascript:logout();">退出</a></dd>
            </dl>
          </li>
          <!-- 操作员信息 -->
          <li class="layui-nav-item layui-hide-xs" lay-unselect>
            <a href="javascript:;" layadmin-event=""><i class="layui-icon layui-icon-more-vertical"></i></a>
          </li>
          <li class="layui-nav-item layui-show-xs-inline-block layui-hide-sm" lay-unselect>
            <a href="javascript:;" layadmin-event=""><i class="layui-icon layui-icon-more-vertical"></i></a>
          </li>
        </ul>
      </div>
      
      <!-- 侧边菜单 -->
      <div class="layui-side layui-side-menu">
        <div class="layui-side-scroll">
          <div class="layui-logo">
            <span>邛崃监狱智慧车间系统</span>
          </div>
          
          <ul class="layui-nav layui-nav-tree" lay-shrink="all" id="LAY-system-side-menu" lay-filter="layadmin-system-side-menu">
	            <c:choose>
				   <c:when test="${Operator.loginname eq 'admin'}"> 
			            <li data-name="produce" class="layui-nav-item layui-nav-itemed">
			              <a href="javascript:;" lay-tips="生产管理" lay-direction="2">
			              	<i class="layui-icon layui-icon-rmb"></i> <cite>生产管理</cite>
			              </a>
			              <dl class="layui-nav-child">
			                <dd data-name="produceinfo"> <a lay-href="produceinfo/findByList" layadmin-event="refresh">生产任务</a></dd>
			                <dd data-name="producematerial"> <a lay-href="producematerial/findByList" layadmin-event="refresh">生产材料出库</a></dd>
			                <dd data-name="produceproduct"> <a lay-href="produceproduct/findByList" layadmin-event="refresh">生产产品信息</a></dd>
			                <dd data-name="producescheduleproblem"><a lay-href="producescheduleproblem/findByList" layadmin-event="refresh">生产问题查询</a></dd>
			              </dl>
			            </li>
			            
			            <li data-name="depot" class="layui-nav-item">
			              <a href="javascript:;" lay-tips="产品管理" lay-direction="2">
			                <i class="layui-icon layui-icon-home"></i>
			                <cite>产品管理</cite>
			              </a>
			              <dl class="layui-nav-child">
			              	<dd data-name="depotmanage"><a lay-href="depotrack/findByList" layadmin-event="refresh">货架管理</a></dd>
			              	<dd data-name="materila"><a lay-href="material/findByList" layadmin-event="refresh">材料型号管理</a></dd>
			              	<dd data-name="product"><a lay-href="product/findByList" layadmin-event="refresh">产品型号管理</a></dd>
			              	<dd data-name="bom"><a lay-href="bom/findByList" layadmin-event="refresh">BOM清单</a></dd>
			              	<!--
			              	<dd data-name="workorder"><a lay-href="workorder/findByList" layadmin-event="refresh">工序管理</a></dd>
			              	  -->
			              	<dd data-name="problem"><a lay-href="problem/findByList" layadmin-event="refresh">质检问题管理</a></dd>
			               	<dd data-name="materiladepot"><a lay-href="materialdepot/findByList" layadmin-event="refresh">材料库存管理</a></dd>
			                <dd data-name="materilaInOut"><a lay-href="materialinout/findByList" layadmin-event="refresh">材料出入库记录</a></dd>
			                <dd data-name="productdepot"><a lay-href="productdepot/findByList" layadmin-event="refresh">产品库存管理</a></dd>
				            <dd data-name="productInOut"><a lay-href="productinout/findByList" layadmin-event="refresh">产品出入库记录</a></dd>
			              </dl>
			            </li>
			            
			           	<li data-name="tool" class="layui-nav-item">
			              <a href="javascript:;" lay-tips="工具管理" lay-direction="2">
			                <i class="layui-icon layui-icon-component"></i>
			                <cite>工具管理</cite>
			              </a>
			               <dl class="layui-nav-child">
			               	 <dd data-name="tooldepot"><a lay-href="tooluse/findByList" layadmin-event="refresh">工具借用主界面</a></dd>
			                 <dd data-name="toolinout"><a lay-href="toolinout/findByList" layadmin-event="refresh">工具借用记录</a></dd>
			                 <dd data-name="tool"><a lay-href="tool/findByList" layadmin-event="refresh">工具型号</a></dd>
			                 <dd data-name="toolplate"><a lay-href="toolplate/findByList" layadmin-event="refresh">工具板管理</a></dd>
			                 <dd data-name="tooldepot"><a lay-href="tooldepot/findByList" layadmin-event="refresh">工具库存</a></dd>
			               </dl>
			            </li>

					<!--
			            <li data-name="device" class="layui-nav-item">
			              <a href="javascript:;" lay-tips="设备管理" lay-direction="2">
			                <i class="layui-icon layui-icon-snowflake"></i>
			                <cite>设备管理</cite>
			              </a>
			               <dl class="layui-nav-child">
			               	 <dd data-name="device"><a lay-href="device/findByList" layadmin-event="refresh">设备信息</a></dd>
			               	 <dd data-name="devicedepot"><a lay-href="devicedepot/findByList" layadmin-event="refresh">设备查询</a></dd>
			                 <dd data-name="deviceinout"><a lay-href="deviceinout/findByList" layadmin-event="refresh">出入库记录</a></dd>
			               </dl>
			            </li>
			            -->
			            <li data-name="address" class="layui-nav-item">
			              <a href="javascript:;" lay-tips="工位管理" lay-direction="2">
			                <i class="layui-icon layui-icon-cellphone-fine"></i>
			                <cite>工位管理</cite>
			              </a>
			              <dl class="layui-nav-child">
			                <dd data-name="workline"><a lay-href="workline/findByList" layadmin-event="refresh">产线管理</a></dd>
			                <dd data-name="worksection"><a lay-href="worksection/findByList" layadmin-event="refresh">工段管理</a></dd>
			                <dd data-name="workmachine"><a lay-href="workmachine/findByList" layadmin-event="refresh">工位机管理</a></dd>
			              </dl>
			            </li>
			            
			            <li data-name="prisoner" class="layui-nav-item">
			              <a href="javascript:;" lay-tips="人员管理" lay-direction="2">
			                <i class="layui-icon layui-icon-user"></i>
			                <cite>人员管理</cite>
			              </a>
			              <dl class="layui-nav-child">
			                <dd data-name="prisoner"><a lay-href="prisoner/findByList" layadmin-event="refresh">人员设置</a></dd>
			                <dd data-name="rollcall"><a lay-href="rollcall/addInit" layadmin-event="refresh">人员点名</a></dd>
			                <dd data-name="quartzJob"><a lay-href="quartzJob/findByList" layadmin-event="refresh">自动点名设置</a></dd>
			                <dd data-name="rollcallquery"><a lay-href="rollcall/findByList" layadmin-event="refresh">点名查询</a></dd>
			              </dl>
			            </li>
			            
			            <li data-name="system" class="layui-nav-item">
			              <a href="javascript:;" lay-tips="系统设置" lay-direction="2">
			                <i class="layui-icon layui-icon-set"></i>
			                <cite>系统设置</cite>
			              </a>
			              <dl class="layui-nav-child">
			              	<dd data-name="operator"><a lay-href="operator/findByList" layadmin-event="refresh">操作员管理</a></dd>
			              	<dd data-name="role"><a lay-href="role/findByList" layadmin-event="refresh">权限管理</a></dd>
			                <dd data-name="updatemyinfo"><a lay-href="operator/updateMyinfoInit">修改资料</a></dd>
			                <dd data-name="updatepassword"><a lay-href="operator/updateMypasswordInit">修改密码</a></dd>
			                <dd data-name="systempara"><a lay-href="systempara/findByList" layadmin-event="refresh">系统参数</a></dd>
			              </dl>
			            </li>
				   </c:when>
				   <c:otherwise>
			           <c:forEach items="${menulist}" var="data" varStatus="vs">
			           		<li data-name="${data.menucode}" class="layui-nav-item">
				              <a href="javascript:;" lay-tips="${data.menuname}" lay-direction="2">
				              	<i class="layui-icon layui-icon-rmb"></i> <cite>${data.menuname}</cite>
				              </a>
				              <dl class="layui-nav-child">
				              	 <c:forEach items="${data.secondmenulist}" var="seconddata" varStatus="vs">
					    		    <dd data-name="${seconddata.menucode}"><a lay-href="${seconddata.menuurl}" layadmin-event="refresh">${seconddata.menuname}</a></dd>
					    		 </c:forEach>
				              </dl>
			           		</li>
			           </c:forEach>
				   </c:otherwise>
			   </c:choose>
          </ul>
        </div>
      </div>

      <!-- 页面标签 -->
      <div class="layadmin-pagetabs" id="LAY_app_tabs">
        <div class="layui-icon layadmin-tabs-control layui-icon-prev" layadmin-event="leftPage"></div>
        <div class="layui-icon layadmin-tabs-control layui-icon-next" layadmin-event="rightPage"></div>
        <div class="layui-icon layadmin-tabs-control layui-icon-down">
          <ul class="layui-nav layadmin-tabs-select" lay-filter="layadmin-pagetabs-nav">
            <li class="layui-nav-item" lay-unselect>
              <a href="javascript:;"></a>
              <dl class="layui-nav-child layui-anim-fadein">
                <dd layadmin-event="closeThisTabs"><a href="javascript:;">关闭当前标签页</a></dd>
                <dd layadmin-event="closeOtherTabs"><a href="javascript:;">关闭其它标签页</a></dd>
                <dd layadmin-event="closeAllTabs"><a href="javascript:;">关闭全部标签页</a></dd>
              </dl>
            </li>
          </ul>
        </div>
        <div class="layui-tab" lay-unauto lay-allowClose="true" lay-filter="layadmin-layout-tabs">
          <ul class="layui-tab-title" id="LAY_app_tabsheader">
            <li lay-id="" lay-attr="" class="layui-this"><i class="layui-icon"></i></li>
          </ul>
        </div>
      </div>
      
      <!-- 主体内容 -->
      <div class="layui-body" id="LAY_app_body">
        <div class="layadmin-tabsbody-item layui-show">
          <iframe src="" frameborder="0" class="layadmin-iframe"></iframe>
        </div>
      </div>
      
      <!-- 辅助元素，一般用于移动设备下遮罩 -->
      <div class="layadmin-body-shade" layadmin-event="shade"></div>
    </div>
   </div>
    <script src="layuiadmin/layui/layui.js"></script>
  <script>
	  layui.config({
	    base: 'layuiadmin/' //静态资源所在路径
	  }).extend({
	    index: 'lib/index' //主入口模块
	  }).use(['index', 'contlist', 'table', 'laydate'], function(){
		  
		  window.logout = function(obj) {
			  layer.confirm('确定退出系统?', function(){
				  window.top.location.href = '<%=request.getContextPath()%>/logout';
			  });
		  }
	  });
  </script>
  
  <!-- 百度统计 -->
  <script>
 
  </script>
</body>
</html>